<?php

function printMessage($home_message, $type_img) {
    
   switch ($type_img) {
        case 0 :
            $ext = 'png';
            break;
        case 1 :
            $ext = 'jpg';
            break;
        case 2 :
            $ext = 'jpeg';
            break;
        default :
            $ext = 'jpg';
            break;
    }
    
   echo '
        <div id="acceuil_message">
            <span><img id="president" src="' . URL_IMG . 'home/home.'.$ext.' "  />
            <span id="president_message"> ' . $home_message . '  </span>
	</div>
';
}


?>
